import axios from '../utils/http' // 导入http中创建的axios实例
import { Base64 } from '../utils/base'

let baseObj = new Base64()
const base_url = process.env.BASE_API
const inter_url = '/proxy/cam/proxy/common?api='
const aiccApi = {
  // 坐席外呼统计列表
  getOutSeatsCallCount(params) {
    let url = 'CustomerSolicitFacade-OutSeateCallCount'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  },
  // 根据组织坐席外呼统计列表
  getOrgIdOutSeatsCallCount(params) {
    let url = 'CustomerSolicitFacade-GetOrgIdOutSeateCallCount'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  },
  getExternalTel(params){
    let url = 'CustomerSolicitFacade-getExternalTel'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params)
  }
}

export default aiccApi
